import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *


testCase="DBshop009_查看支付记录"
# 登录后台管理系统,地址是"http://localhost/dbshop/admin",
firefox=openBrowser("http://localhost/dbshop/admin")
firefox.get(urlAdmin)
#调用自定义函数进行后台的登录
DBshopLoginAdmin(firefox)
# 进入销售管理中的发货单,
DBshopEnterMenu2(firefox,'销售管理','支付记录')


#断言
try:
    firefox.find_element_by_xpath("//td[contains(.,'已支付')]")
    writeLog("%s 测试通过"%testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)
# firefox.quit()